package eo.descriptor.property.impl;

import eo.descriptor.property.PropertyDescriptor;

public abstract class AbstractPropertyDescriptor implements PropertyDescriptor {

    private final String name;

    private final Class<?> containerClass;

    public AbstractPropertyDescriptor(Class<?> containerClass, String name) {
        super();
        this.name = name;
        this.containerClass = containerClass;
    }

    protected final Class<?> getContainerType() {
        return this.containerClass;
    }

    public final String getName() {
        return name;
    }

    public boolean isAssociation() {
        return false;
    }

    public boolean isEmbedded() {
        return false;
    }

    public boolean isEnum() {
        return false;
    }

    public boolean isId() {
        return false;
    }

    public boolean isMany() {
        return false;
    }

}
